// TypeScript file

class GameUtils {

    public static CheckHits(obj1:egret.DisplayObject, obj2:egret.DisplayObject):boolean {

        var rect1:egret.Rectangle = obj1.getBounds();
        var rect2:egret.Rectangle = obj2.getBounds();
        rect1.x = obj1.x;
        rect1.y = obj1.y;
        rect2.x = obj2.x;
        rect2.y = obj2.y;
        return rect1.intersects(rect2);

    }

}